#ifndef DLGIMAGEPREVIEW_H
#define DLGIMAGEPREVIEW_H

#include "ui_dlgImagePreview.h"
#include <QLabel>

class dlgImagePreview : public QDialog, private Ui::dlgImagePreview {
    Q_OBJECT
public:
	dlgImagePreview(QString path, QWidget *parent = 0);
	void open();
protected:
    void changeEvent(QEvent *e);

private slots:
	void onSize_Normal(void);
	void onSize_Fit(void);

private:
	QLabel *imageLabel;
	double m_scaleFactor;
	QString m_path;
};

#endif // DLGIMAGEPREVIEW_H
